package com.orchard.orchardfarmmanagementsystem.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.orchard.orchardfarmmanagementsystem.config.CustomOffsetDateTimeDeserializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MaintenanceRecordsDTO {

    private Integer id;
    @JsonDeserialize(using = CustomOffsetDateTimeDeserializer.class)
    private OffsetDateTime maintenanceDate; // 修改这里;
    private String maintenanceType;
    private Integer materialId;
    private String materialName;
    private Integer quantity;
    private String performedBy;
    @JsonDeserialize(using = CustomOffsetDateTimeDeserializer.class)
    private OffsetDateTime createdAt; // 修改这里
    private String remarks;
    private String status;

}